import type { Plugin } from '#/global'

const pluginConfig: Plugin.PluginConfig = {
  install() { },
  config: {
    enable: import.meta.env.DEV,
    info: {
      name: 'ai-warning/file',
      version: '1.0.0',
      author: 'X.Mo',
      description: '提供文件管理功能',
    },
  },
  views: [
    {
      name: 'FileRoute',
      path: '/file',
      meta: {
        title: '文件管理',
        i18n: 'menu.file',
        icon: 'ep:folder',
        type: 'M',
        hidden: false,
        subForceShow: true,
        breadcrumbEnable: true,
        copyright: false,
        cache: true,
      },
      children: [
        {
          name: 'rd_file_voice:rdFileVoice',
          path: '/file/rdFileVoice',
          meta: {
            title: '语音文件',
            i18n: 'rd_file_voice.menu.rdFileVoice',
            icon: 'ep:headset',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdFileVoice/index.vue'),
        },
        {
          name: 'rd_file_playback_video:rdFilePlaybackVideo',
          path: '/file/rdFilePlaybackVideo',
          meta: {
            title: '回放视频',
            i18n: 'rd_file_playback_video.menu.rdFilePlaybackVideo',
            icon: 'ep:video-play',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdFilePlaybackVideo/index.vue'),
        },
      ],

    },
  ],
}

export default pluginConfig

